package com.haier.sdkapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;

import com.haier.commoninterface.ICaculateManagerInterface;
import com.haier.unpackshell.Plugin;
import com.haier.unpackshell.PluginManager;
import com.haier.unpackshell.UnPackShellUtils;

public class MainActivity extends AppCompatActivity {

    ICaculateManagerInterface caculateManager;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        UnPackShellUtils.unpackSdk(MainActivity.this);
        Plugin plugin = PluginManager.getInstance(MainActivity.this).loadPlugin();
        caculateManager = PluginManager.getInstance(MainActivity.this).getCaculateManager(plugin);

        String state = caculateManager.getCurrentState();
        String res = caculateManager.addString("a", "c");
        Log.e("XXX", "state " + state);
        Log.e("XXX", "res " + res);
    }


}